package cn.test.app.a.domain;


import com.alibaba.fastjson2.annotation.JSONField;

import java.util.Date;

/**
 * 用户信息
 */
public class User {

    //用户ID
    private Long id;

    //用户名称
    private String name;

    //创建时间
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public User() {
    }

    public User(Long id, String name, Date createTime) {
        this.id = id;
        this.name = name;
        this.createTime = createTime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
